home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / rpl000011.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  440 b   |  24 lines  |  [TEXT/ttxt]

  1. source include/master-slave.inc;
  2. connection master;
  3. use test;
  4. drop table if exists t1;
  5. create table t1 (n int);
  6. insert into t1 values(1);
  7. save_master_pos;
  8. connection slave;
  9. sync_with_master; 
  10. slave stop;
  11. slave start;
  12. connection master;
  13. insert into t1 values(2);
  14. save_master_pos;
  15. connection slave;
  16. #let slave catch up
  17. sync_with_master;
  18. select * from t1;
  19. connection master;
  20. drop table t1;
  21. save_master_pos;
  22. connection slave;
  23. sync_with_master;
  24.